package com.lanyan.system.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import com.lanyan.system.domain.Building;

/**
 * 楼栋Mapper接口
 *
 * @author lanyan
 * @date 2024-11-26
 */
public interface BuildingMapper extends BaseMapper<Building>
{
    /**
     * 查询楼栋
     *
     * @param buildingId 楼栋主键
     * @return 楼栋
     */
    public Building selectBuildingByBuildingId(Long buildingId);

    /**
     * 查询楼栋列表
     *
     * @param building 楼栋
     * @return 楼栋集合
     */
    public List<Building> selectBuildingList(Building building);

    /**
     * 新增楼栋
     *
     * @param building 楼栋
     * @return 结果
     */
    public int insertBuilding(Building building);

    /**
     * 修改楼栋
     *
     * @param building 楼栋
     * @return 结果
     */
    public int updateBuilding(Building building);

    /**
     * 删除楼栋
     *
     * @param buildingId 楼栋主键
     * @return 结果
     */
    public int deleteBuildingByBuildingId(Long buildingId);

    /**
     * 批量删除楼栋
     *
     * @param buildingIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBuildingByBuildingIds(Long[] buildingIds);
}
